package com.hrbxlh.doccheck.constant;

/**
 * @author cheer
 */
public class DocCheckConstant {

    /**
     * 最大上传压缩包大小 200MB
     */
    public static final long MAX_UPLOAD_SIZE = (long) 200 << 20;

    /**
     * 上传文件超过限制提示
     */
    public static final String MAX_UPLOAD_SIZE_MESSAGE = "文件大小不能超过200MB";

    /**
     * 文档查重临时保存路径
     */
    public static final String DOC_CHECK_DIR;

    static {
        String os = System.getProperty("os.name");
        if (os != null && os.toLowerCase().startsWith("win")) {
            DOC_CHECK_DIR = "C:\\tmp\\doc\\";
        } else {
            DOC_CHECK_DIR = "/tmp/doc/";
        }
    }
}
